package web.java.servlet;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class OnlineUserServlet extends HttpServlet {
	public void service(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		ServletContext sc=request.getServletContext();
		List<String> onlineUserList=(List<String>)sc.getAttribute("onlineUserList");
		request.setAttribute("onlineUserList",onlineUserList);
		request.getRequestDispatcher("onlineList.jsp").forward(request,response);
	}

}
